import request from '@/utils/request'
export function fetchList(params) {
return request({
url: '/shop/shopInvoice/list',
method: 'get',
params: params
})
}
export function createShopInvoice(data) {
return request({
url: '/shop/shopInvoice/create',
method: 'post',
data: data
})
}

export function deleteShopInvoice(id) {
return request({
url: '/shop/shopInvoice/delete/' + id,
method: 'get',
})
}

export function getShopInvoice(id) {
return request({
url: '/shop/shopInvoice/' + id,
method: 'get',
})
}

export function updateShopInvoice(id, data) {
return request({
url: '/shop/shopInvoice/update/' + id,
method: 'post',
data: data
})
}

